package top.wardyan.wdev.dbdevassist.action.dic;

import java.util.List;

import top.wardyan.action.base.AbstractShell;
import top.wardyan.base.model.BaseModel;
import top.wardyan.wdev.dbdevassist.action.base.BaseMasterShell;

public class DicShell extends BaseMasterShell<DicShell>{

	@Override
	protected List<? extends BaseModel<?>> getList() {
		return dda.dicService.list();
	}

	@Override
	protected AbstractShell<? extends AbstractShell<?>> mainAddShell() {
		return null;
	}

	@Override
	protected AbstractShell<? extends AbstractShell<?>> mainEditShell(int sID) {
		return new DicEditShell(sID, dda.dicService, dda.dicItemService);
	}

	@Override
	protected String title() {
		return "数据字典";
	}
	
	
	public static void main(String[] args) {
		new DicShell().go();
	}

}
